/**
 * Created by i073349 on 4/18/16.
 */
import Vue from 'vue'
import Vuex from 'vuex'
import VueRouter from 'vue-router'
Vue.use(Vuex)
Vue.use(VueRouter)
import Page from './components/_pt_programs_management.vue'
import store from './vuex/_store'

import programMenu from './components/program_menu.vue'
import programWizard from './components/program_wizard.vue'

const routes = [{
  path: '/',
  component: programMenu
}, {
  path: '/create',
  component: programWizard
}, {
  path: '/edit/:id',
  component: programWizard
}]

const router = new VueRouter({routes});

window.mainAPP = new Vue({
  el: '#app',
  store,
  router,
  template: '<page></page>',
  components: {
    page: Page
  }
})
